package com.youdianda.service;


import com.baomidou.mybatisplus.extension.service.IService;
import com.youdianda.dto.YddAdvposDTO;
import com.youdianda.dto.YddAdvposPageQueryDTO;
import com.youdianda.entity.YddAdvpos;
import com.youdianda.result.Result;
import com.youdianda.vo.YddAdvposPageQueryVO;
import com.youdianda.vo.YddAdvposVO;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author mosen
 * @since 2023-05-15
 */
public interface IYddAdvposService extends IService<YddAdvpos> {
    /**
     * 广告位分页查询
     *
     * @param yddAdvposPageQueryDTO
     * @return
     */

    public Result<YddAdvposPageQueryVO> pageQuery(YddAdvposPageQueryDTO yddAdvposPageQueryDTO);


    /**
     * 根据id查询
     * @param id
     * @return
     */

    public Result<YddAdvposVO> selectById(Integer id);


    /**
     * 修改广告位
     * @param yddAdvposDTO
     * @return
     */
    public Result updateYddAdvpos( YddAdvposDTO yddAdvposDTO);

    /**
     * 根据id删除广告位
     * @param id
     * @return
     */
    public Result deleteById(Integer id);

    /**
     * 广告列表全部
     * @param
     * @return
     */
    public Result<List<YddAdvpos>> allAdvpos();

    /**
     * 新增广告位
     * @param yddAdvposDTO
     * @return
     */
    public Result insertAdvpos( YddAdvposDTO yddAdvposDTO);
}
